//
//  GetAddBuyGoodsView.m
//  TryShopping
//
//  Created by panquanReabam.com on 16/10/20.
//  Copyright © 2016年 RuiBen. All rights reserved.
//

#import "GetAddBuyGoodsView.h"

@implementation GetAddBuyGoodsView
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
         _headImageFull = [[UIImageView alloc]init];
        [_headImageFull.layer setCornerRadius:0];
        [_headImageFull.layer setBorderWidth:0.5];
        [_headImageFull.layer setMasksToBounds:YES];
        CGColorSpaceRef colorSpace2 = CGColorSpaceCreateDeviceRGB();
        CGColorRef colorref2 = CGColorCreate(colorSpace2,(CGFloat[]){ 0.93, 0.93, 0.93, 0.93 });
        [_headImageFull.layer setBorderColor:colorref2];//边框颜色
        _headImageFull.frame = CGRectMake(15, 15, 55, 55);
        [self addSubview:_headImageFull];
        
        
        
//        _productType =[[UILabel alloc]init];
//        _productType.textColor=[UIColor redColor];
//        [_productType.layer setCornerRadius:2];
//        [_productType.layer setBorderWidth:0.5];
//        [_productType.layer setMasksToBounds:YES];
//        CGColorSpaceRef colorSpace12 = CGColorSpaceCreateDeviceRGB();
//        CGColorRef colorref12 = CGColorCreate(colorSpace12,(CGFloat[]){ 252/255.0, 54/255.0, 30/255.0, 1.0 });
//        [_productType.layer setBorderColor:colorref12];//边框颜色
//        _productType.font=[UIFont systemFontOfSize:10];
//        _productType.textAlignment=NSTextAlignmentCenter;
//        [self addSubview:_productType];
//        
//        _itemName = [[UILabel alloc]init];
//        _itemName.numberOfLines=0;
//        _itemName.textColor=[UIColor blackColor];
//        _itemName.font=[UIFont systemFontOfSize:13];
//        [self addSubview:_itemName];
//        
//        
//        _itemType = [[UILabel alloc]init];
//        _itemType.font=[UIFont systemFontOfSize:12];
//        _itemType.textColor=shenhuiColor;
//        [self addSubview:_itemType];
//        
//        _dealPrice = [[UILabel alloc]init];
//        _dealPrice.font=[UIFont systemFontOfSize:12];
//        _dealPrice.textColor=shenhuiColor;
//        [self addSubview:_dealPrice];
        
        _quantity = [[UILabel alloc]initWithFrame:CGRectMake(ScreenWidth-100, 60, 85, 13)];
        _quantity.font=[UIFont systemFontOfSize:12];
        _quantity.textAlignment=NSTextAlignmentRight;
        _quantity.textColor=shenhuiColor;
        [self addSubview:_quantity];
        [self setViewAutoLayout];
    }
    return self;
}
-(void)setViewAutoLayout
{
    
//    [self.productType mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.left.equalTo(self.mas_left).with.offset(80) ;
//        make.height.equalTo(@14);
//        make.top.equalTo(self.mas_top).with.offset(15);
//    }];
//    [self.itemName mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.left.equalTo(self.productType.mas_right).with.offset(5);
//        make.height.equalTo(@12);
//        make.top.equalTo(self.mas_top).with.offset(15);
//    }];
//    [self.itemType mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.left.equalTo(self.mas_left).with.offset(108) ;
//        make.height.equalTo(@14);
//        make.top.equalTo(self.mas_top).with.offset(45);
//    }];
//    [self.dealPrice mas_makeConstraints:^(MASConstraintMaker *make) {
//       make.left.equalTo(self.mas_left).with.offset(110) ;
//        make.height.equalTo(@12);
//        make.top.equalTo(self.mas_top).with.offset(60);
//    }];
//    
    
    
}
@end
